﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security;
using QuickTweet.Common;

namespace QuickTweet.Models
{
    public class TwitterAccount : ObservableObject
    {
        #region Properties

        private string name;
        public string Name
        {
            get
            {
                return name;
            }
            set
            {
                if (UpdateProperty(value, ref name))
                    OnPropertyChanged("Name") ;
            }
        }

        private string twitterID;
        public string TwitterID
        {
            get
            {
                return twitterID;
            }
            set
            {
                if (UpdateProperty(value, ref twitterID))
                    OnPropertyChanged("TwitterID");
            }
        }

        private int order;
        public int Order
        {
            get
            {
                return order;
            }
            set
            {
                if (UpdateProperty(value, ref order))
                    OnPropertyChanged("Order");
            }
        }
        
        public SecureString AccessToken { get; set; }
        public SecureString AccessTokenSecret { get; set; }

        #endregion

        public override string ToString()
        {
            return name;
        }
    }
}
